package com.study.manage.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PermissionVO{
	private Integer id;

	private String name;

	private Integer pId;

	private Integer istype;

	private String code;

	private String page;

	private String icon;

	private Integer zindex;

	private boolean checked;

	private boolean open;

	public PermissionVO(Integer id, String name, Integer pId, Integer istype, String code, String page, String icon, Integer zindex){
		this.id = id;
		this.name = name;
		this.page = page;
		this.pId = pId;
		this.istype = istype;
		this.code = code;
		this.icon = icon;
		this.zindex = zindex;

	}

	@Override public String toString() {
		return "PermissionVO{" + "id='" + id + '\'' + ", name='" + name + '\''
				+ ", pId='" + pId + '\'' + ", istype='" + istype + '\''
				+ ", code='" + code + '\'' + ", page='" + page + '\''
				+ ", icon='" + icon + '\'' + ", zindex='" + zindex + '\''
				+ ", checked=" + checked + ", open=" + open + '}';
	}
}